<?php

namespace App\Http\Requests\Auth;

use App\Http\Requests\BaseRequest;


class CodeRequest extends BaseRequest
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'code'=>'required',
            'email'=>'required|email'
        ];
    }
    public  function messages(){
        return [
            'code.required'=>'验证码 不能为空',
        ];
    }
}
